import http from '../http'
import { SMART_HOMEWORK } from '@/apis'

/**
 * 获取oss token
 * @param {*} policy
 * @returns
 */
export function getOssToken(policy = 0) {
  return http.get(`${SMART_HOMEWORK}/v1/common/upload/ststoken`, {
    params: {
      policy
    }
  })
}
